<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>清浮动</title>
		<style type="text/css">
			.fl {
				float: left;
			}

			/* .clearfix{
				clear: both;
			} */
			/* 闭合浮动 */
			.clearfix::before,
			.clearfix::after {
				content: "";
				display: table;
			}

			.clearfix::after {
				clear: both;
			}

			.f {
				width: 600px;
				/* height: 300px; */
				border: 1px solid red;
			}

			.s {
				width: 200px;
				height: 100px;
				border: 1px solid blue;
			}

			p::before {
				content: "《";
			}

			p::after {
				content: "》";
			}
		</style>
	</head>
	<body>
		<div class="f clearfix">
			<div class="s fl"></div>
			<div class="s fl"></div>
			<!-- <div class="clearfix"></div> -->
		</div>
		<!-- <p>知否知否，应是绿肥红瘦</p> -->
	</body>
</html>
